package com.vogue.supplymall.match.domain.model;

import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import com.vogue.ssm.database.util.DealStatus;
import com.vogue.supplymall.common.constant.ConstantBean;
import com.vogue.supplymall.common.domain.tool.VestUtils;
/**
 * 需要分平台查询的表实体继承此基类
 * 
 * @author 崔岳
 *
 */
@MappedSuperclass
public class TendBaseEntity extends BaseEntity {

	/**
	 * 所属平台id
	 */
	@Id
	private Integer tendid;

	public Integer getTendid() {
		if(tendid == null) {
		    if (VestUtils.getTendid() != null) {
		        tendid = Integer.parseInt(VestUtils.getTendid());
		    }
		}
		return tendid;
	}

	public void setTendid(Integer tendid) {
		this.tendid = tendid;
	}
	
}
